fixes resize
fixes conflict
enables constraints to be a function