set epsilon as 1/k