changed registration script