used a for loop but css broke