start fixing memory