added linked list for domain (still buggy)