fix deprrecation warnings
gi