fixed functions and commented ticks