first step to deep belief network