trim all the useless