remove unused time slice function