added cps starting code