fixing the depends on references