fixed pointer handling