improve dict regec