added script for ticking