prevent errors when bad params are submitted