brain implementation fixes #2