implement modified_time func