automatic params finding