removed unnecessary slicing