/* please note that this is painful slow, and redundant, bear with me :) */ for (i=0; i