trying to keep memory down