took out if statement with invalid reference on draw