add lines and bounding box