translated and tweaked the registration