deprication fix