mask cyclic pointers