finished register script