working on validating parameters.