added alerts and fixed bug on number greater than 100