passing pointers prepend