changed getStroke