fix for function call