added checks for stat success