moving check_parameters to a parameters file