resolving a function call error.