adding for loops and switched to x86