minor correction on phase space scritp