fixed reference to function that was deleted