changed reply format from array to hash