sorting out packages