fixing rules for training