modified Keiths file