fixed for loop, and added 1st math operators