how environment affects habits