moving coord update out of draw so it can happen without draw defined