working on cam control