changed params for main