added ticks to code