added heart funciton