add rule for pan