add set preset

add the function about preset