validating parameters
removed foo