dict construction simplified