fixed intialization of panbypix