added instruction k means