useless code, and fix a test