made defp split_space for easy piping