added function to get register size