remove unnecessary slice