added drawWay method