update density over time test code