initialized size of slice is not right