more param checking