amend orders controller in line with code climate suggestions