modify to use less memory 1G -> 512M
modify to use less memory 1G -> 512M