cp2-with void error