testing tick function