added class to provider and curser query