restore original tick code