You assign primary but never use it.