change function delegation to .call()