polished source code