simplifying heartbeat sleeps