autoencoder update and data organize