made master detail work