update code to eliminate inactive patients