fixed pypesAdvanced