logging improved
differentiate between ascending and descending