changed subview array to hash