turn squares into lines