added check for tome type