first try to detect rect line