removed for loops