Identity and habits