sorting out the dependency