added function ki()