error checking on parrameters given