replace dependencies