bypassed panning code