Revert "fix galaxy map bug"

This reverts commit c8be8df220bb507d141142252020bdf7580ce5d6.
Revert "compacted script a little"

This reverts commit 966793bbc28db1e4f6d9f589dd1442f7f474f3c0.