clean and and remove unnecessary