fixed pointer and type agreement issue
getting up to date