removed pointer errors