modified SelabAP