added brain functions