fixed deleteFunctions
added public isRelationshipTo
fixed declaration error
fixed declaration error