fixed awk for unique entries