brain link function called properly