Changed pointers

Removed passing pointers