moved params declaration to main