in accordance with the rules for right conduct

See: ethical