refactor restrucring code
show default values in examples