bug fixed
memories enlarged
little little optimization