code made compact, and awesome more colorful