possible fix for memory problem