Revert "moved ga to head"

This reverts commit 6fda101f6571bedf3df4a32a68b9bbb1172a2b03.
optimized GA code