made my second solution awesomer