added flags for two types of density differences
multiple density differences are now available