changed the default case and the comparison