moved parameters from constructor