fix warnings about deprecated variable use syntax