resolve memery problem