Changed output 'x' to 'i'