updates with pseudo code for galaxy implementation in flash