added for loop hw