add end() function
finish clockout func