adding 2 cases for multiple parameters