memory issues attempted fix