added 3 constraints and cleaned the diagram