deleted duplicate edit function