modification following ken's comments