update dependencies for every layer