still need to add sorted list logic