replaced loop by explicit depends