adjustment for potential memory issues