the ol' messy C version of why2. rest in piece