trying to be more memory concious