starting to implement the heartbeat