deleted some unnecessary heap variables