update phase space