implemented pointer errors