add a function,rewrite some line ,fix some mistake
add a function
add a function(it seem the function should be rewrite more easy use,I will do it next time)
add a funciton