added pointer code and directory