updating distance and eeps