added code that was lost in the wind