added synchronized pan