use ne to judge ref not equals