prettify, remove useless code