my first useful macro...let's see if it breaks anything