removing duplicate assignments