make impact graph more general