pan handling