Dynamics of self gravitating matter