fix brain(end)