reformatted constraints + added line constraint