tidy up, reduce useless cpu and memory consumption