remove un-needed call to slice