changes in function FindNextRedPoint