added code to deal with other_time and allocated_memory