added tick method