added customDraw method for overriding