removed deprecaded deref() call