added judge of number