fixed pointer probelm