pretraining now works for DBNs