code changed so each projection completely done before moving to next instead of loading them all and then creating files