for loop added.. work in progress