adding set null method