added tick length option