ellipsify refactor