add discretization in stdin