some style edits to mongo work