complete all heart logic