functional version of dependencies