defined the function with to parameters.