adding inputclass to initializer