space_rebase coded apart from the main()