additions and sort