another version of the calculation pointer to video mode