adding limit to getStatHistory