working version with mdb