added the brains functions.