remove subtract
remove ceil in TimeArray
small improvment