removed alert, calculated accurate sum, turned float to int