checking whether on the same line works