Add axis separator

add asis separator and refactor the code.