made registration functional