bug fix, remove unnecessary pointers