not working, but should. Stupid pointers