Update the type of parameters to make it more easier and understand.