added method openPan