adding register controller and method