minor efficiency improvement