added draw method