fix pointer reference