buildGi still wrong
buildGi is better