remove duplication, avoid nil error