forgot to implement looping variable like a FOOL!