working on material pointers