remove uneeded things, add needed things