new implementation of dbs