keep function steady with deprecation warning, so that users know what is going on