restrict morphology. optimize training and testing