proper functioning of the heart