updated formula with real dependencies