works up to i = 12, setElement isn't correct