if this is deprecated, what should be used instead?