printAll function need to sort better