working for apply new API.