Assign ReplyData outside of forEach