hopefully all memory errors gone now