modify function Node:scheduleUpdate()