added hstack concatenation