worked on api class