adds vertical and horizontal stroke detection