working on inherited autoencoder