wrote function to iterate through columns at interval. needs to be refac...

...tored