master detail almost done.