minor refactor

remove useless code