added in @deprecated to old functions