added new rmDuplicates method. Removed print stmt