add ruler

add ruler,
change method