fixed how it handles 1 deviation only