get panning to work