added slot shift, and fixed cam