switch j and k