first version of chaoborus density calculation