replacing dependency