add random patch but not used
add epsilon_nearest func