halfway, pointer warnings unsolved