make program more efficient with precaculated variables