-changed mem to 512