can compile, now has memory problems