fix pointer pointing