not so good border detection