shift is a pointer, but we need an object reference. Fixed.