slice error corrected