inputreg

input register handling