add function about register map