added the getStats methods