adds pointer code