small changes to functions params