panel preprocessing