changed stroke equation, fixed orientation