add data and hash