added bnn stuff