fixing a stupid deprecation warning