changed the way of PHx modifier detection