memory issue solved