adding all parameters to main class