adding number function and adding to parameters