finished up_pass in dbnlayer