number function working with return value