updated cases and defined GOOD,BAD etc