creating the generict parameter method