some bugs fixed in therealistcomplete.rb