made parameters into instanance var not method
update test to reflect params change