min max should be different for different parts