improves api