add function to showLine API