kill dupe directions, clean up code