fixed to check for proper term data