didn't fix memory error, but got it to initialize