fixed violations on classes