fix bad programming