changed: m_iCurrentPts is NOT an int but a double