wrote function to alert when certain percentage threshold passed