ok so i figured out the problem. my GPU was overheating and i found out that there was a mountain of dust under the fan and the way my GPU is facing(upside down) i couldn't tell if it had anything on it or not.

So i cleaned it out and it works like a charm.