added check for to relation to not be a string