reworked single constraint building