main has everything and works  dictionary needs to be ignored
documented works count array not sorted