fixed duplication bug i think