added doctor only constraint