refactor the multipart related