replace property lookup with function call