use proper calculate array reference for hashes in multipart