try to deallocate memory