param checking