changed _.size call to use _.uniqueId