output combined to one dimension