neater solution