return value for register and order