handle record sub elements