added handling for pointer versions