fixed function param checking