Changed working for default case statement