added a 4GB memory limit