materialize before unpersist dependencies