blowing away my horrible re-write idea