parameters moved to main