cm working test function added