legacy, CPS example