reduces memory consumption