change the upload function of attraction