corrected coordinates counting