fixed function and commented ticks