remove last occurences of kodos