first attempt at heartbeats