master detail works as expected