null check e delete subs