removed shitty performance on for loops