removed bad variable references