Revert "remove unnecessary pointer usage for readability"

This reverts commit 20c17a709c96e1bca4db928ff8f3397de931e2bd.