adding deprecation warning to method. have to think about this one