pets beginning, ran cleanup

Dan's code for reference