added normalize_params method