autoencoder wrapper made