moved deprecation warning up