added for loop but not tested yet