removed unused function in deferred