deleted deprecated func()