modify  recv_compare_spaces