use panel as parameter