fixing function param case