added ticks and did some checks