apply function is ready