requiring a code of conduct