changed default value i to k