added a lastUpdated helper method