changed pattern of refword to 0101010101...