improve nested profile search