create an array from hash