ticks in a script working