got rid of extra for loop (???) in original synth code. better performance