added parameter search and testing