version compiles and links but there was illegal memory access