after getting a lot of blue green algae ive read that it is caused by bad filtration
IME I have not read that to be the cause of BGA (cyanobacteria, which is not algae at all btw). BGA is usually caused by low NO3 levels. That said, if your filter is not giving enough circulation, then your NO3 is not going to get everywhere it needs to be.
The following technique is paraphrased from some advice I got from Tom Barr on the subject.
To get rid of BGA; a thorough tank cleaning, Partial water change (50%), and then remove as much of the BGA as you can by hand, clean the filter, and vacuum the substrate if it has a lot of mulm.
Then do another 50% water change, add KNO3 (approximately 1/4 tsp/25 gallons), turn off the lights and CO2 then cover the tank so no light get in for 3 full days. You can use 2 layers of trashbags to cover it so that no light gets in. Don't peek, don't feed, keep the light in the room low...this is a complete blackout you are trying for.
After 3 days, take the bags off and turn everything back on, do another 50% water change. From there you should be in good shape. Poor NO3=> BGA again.
You can use arythromycin (Marycyn), follow the package directions and it will kill and get rid of the BGA in a day or two. The meds just kill it for awhile, maybe 1 -2 months before it come back if you do not correct the problem that allowed it to grow in the first place.
BGA=Low nitrates, but high nitrates do not kill it or remove it, they just prevent it.