apply function updating...