remove unnecessary relationships;