working with two parameters