reference implementation of limit operator