Evolution of black holes in the galaxy