added fix for functiona call that was missing parameter