credits to gmarik for teaching us an important lesson