fixed constraints and text output (mistyped 1 and l)