updated calling function method