small pre-dbm for lab :) buggy and ugly