adjusted to new draw method signature