finished lots fixed more memory stuff