cleaning up before making friends matrix