handle timeticks