delete function for timeline