removed usage of unique; added debug writelns