changed Register model