fixing edge case with separators