added config
started using parameters