converted for function call