remove unnecessary modules