edited sample code for mean/cam sihft and fixed an error