clean and link