fixing nested depandencies