added setStroke method