separated point calculation from updateDisplay