fixing registration ugly