removing deprecated variable use

thanks to @jbouse