added span class to API