brain.cpp beautifing