change format(Object) to format(Number) to prevent invalid objects to be used