fixed reg
add test