prepare for modelPtr
minor changes
prepare for pointer