rename mmfunctions to cavpperfunctions