not the world's most beautiful form (or code for that matter)