edits to use new methods added nil to delegate