adding function for running pet