first version of density criterion