small fixes to parameters passed