updated the format of the lastActivity