modified EndSet