memory problem solved