remove unneeded pointer/array/reference magic