added number format and changed the if condition