removed one for loop :)