replicating the same function for exercise as with the entry details