working on sorted add