get rid useless code