check dependencies remove null