played with case 0 dummies  - implement for the other cases - I think it works - still getting errors in some cases