added style to the function tick