add param validation