sample panel function