remove uneeded slice