code compliance protects investments