I put it before both loops and it says illegal function call