updating the heart controller for integration with the wire