attempting to use ptrs to simplify code
ptr use successful and commented