added for loops to kfdsj