replaceing i with Id