changing mem to 512MB